// -*-c#-*-
// License: New BSD License : http://www.opensource.org/licenses/bsd-license.php
//
// Copyright (c) 2008, Brothers In Arms/Burl Nyswonger
//
// See: BiaVote.uc for full License
// 
//@L

class BiaVoteEndMessage extends UTLocalMessage;
//
// lol - "local" my arse! -- I'm passing an OptionalObject with a string in it 
// TODO: figure out how to do a better job of localizing things...
//
`include( BiaVote/Classes/BiaStdInc.uci ) 

static function string GetString(
        optional int Switch,
        optional bool bPRI1HUD,
        optional PlayerReplicationInfo RelatedPRI_1,
        optional PlayerReplicationInfo RelatedPRI_2,
        optional Object OptionalObject
        )
{
    local BiaVoteMessageObject Obj;
    
    Obj = BiaVoteMessageObject(OptionalObject);

    `BiaDbg("Sending Message: " $ Obj.Message);
    
    if(Obj != None)
    {
        return( Obj.Message );
    }
    return "";
}

defaultproperties
{
    bIsUnique=true
    Lifetime=15
    DrawColor=(R=255,G=75,B=25,A=255)
    FontSize=3
    bBeep=true
    bIsConsoleMessage=false
    MessageArea=2
}